import axios from "@/utils/http"
enum Api {
    login = "/v1/user/login",
    userInfo = '/v1/user/info'
}
export const login = <T>(parmas: {username:string,passWord:string}) => {
    return axios.post<T>(Api.login, parmas) as T
}

export const getUsetInfo = <T>() => {
    return axios.get<T>(Api.userInfo) as T
}